﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyClient.aspx.cs" Inherits="Hkwl.WorldExpo.Merchant.Web.ModifyClient" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>

<%@ Register Src="ShowLoginInfo.ascx" TagName="ShowLoginInfo" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>E-Coupon商家系统 - 快速添加客户资料</title>
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.custom.css" rel="stylesheet" />
    <link href="Css/style.css" rel="stylesheet" type="text/css" />
    <link type="text/css" href="css/jquery.alerts.css" rel="stylesheet" />
    <link type="text/css" rel="stylesheet" href="css/validator.css" />

    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript" src="js/jquery-ui-1.8.custom.min.js"></script>

    <script src="Js/jquery.alerts.js" type="text/javascript"></script>
    
    <script src="Js/formValidator.js" type="text/javascript"></script>

    <script src="Js/formValidatorRegex.js" type="text/javascript"></script>
	
    <script type="text/javascript">
		$(document).ready(function(){
	        $.formValidator.initConfig({formid:"form1",onerror:function(msg){jAlert(msg,"<asp:Literal Text='<%$ Resources:Default,NOTE %>' runat='server'></asp:Literal>",null)},onsuccess:function(){return true;}});
	        $("#ShowLoginInfo1_btn_Logout").click(function(){
		        $("#txtCellPhone").unFormValidator(true);
		        $("#txtCompany").unFormValidator(true); 
		        $("#txtUserName").unFormValidator(true); 
		    });
		    $("#btnSubmit").click(function(){
		        if($("#hidOldCellPhone").val() == $("#txtCellPhone").val())
		        {
		            $("#txtCellPhone").unFormValidator(true);
		        }
		    });
			$("#txtCellPhone").formValidator({onshow:" ",onempty:"<asp:Literal Text='<%$ Resources:Check,MOBILE_NUMBER_CANNOT_BE_EMPTY %>' runat='server'></asp:Literal>",onfocus:"<asp:Literal Text='<%$ Resources:Check,MOBILE_NUMBER %>' runat='server'></asp:Literal>",oncorrect:"<asp:Literal Text='<%$ Resources:Check,VALIDATION_PASSED %>' runat='server'></asp:Literal>"}).inputValidator({min:11,max:11,onerror:"<asp:Literal Text='<%$ Resources:Check,MOBILE_NUMBER_11 %>' runat='server'></asp:Literal>"}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"<asp:Literal Text='<%$ Resources:Check,CHECK_MOBILE_NUMBER_FORMAT %>' runat='server'></asp:Literal>"}).ajaxValidator({type : "get",url : "Service.aspx",datatype : "json",success : function(data){if( data == "1" ){return true;}else{return false;}},buttons: $("#btnSubmit"),error: function(){jAlert("<asp:Literal Text='<%$ Resources:Check,SERVER_BUSY %>' runat='server'></asp:Literal>","<asp:Literal Text='<%$ Resources:Default,NOTE %>' runat='server'></asp:Literal>",null);},onerror : "<asp:Literal Text='<%$ Resources:Check,MOBILE_NUMBER_REGISTERED %>' runat='server'></asp:Literal>",onwait : "<asp:Literal Text='<%$ Resources:Check,VALIDATION_IN_PROCESS %>' runat='server'></asp:Literal>"});
	        $("#txtCompany").formValidator({onshow:"<asp:Literal Text='<%$ Resources:Check,COMPANY_NAME_40 %>' runat='server'></asp:Literal>",onempty:"<asp:Literal Text='<%$ Resources:Check,COMPANY_NAME_EMPTY %>' runat='server'></asp:Literal>",onfocus:"<asp:Literal Text='<%$ Resources:Check,COMPANY_NAME_40 %>' runat='server'></asp:Literal>",oncorrect:"<asp:Literal Text='<%$ Resources:Check,VALIDATION_PASSED %>' runat='server'></asp:Literal>"}).inputValidator({min:3,max:40,onerror:"<asp:Literal Text='<%$ Resources:Check,INPUT_NOT_CORRENT %>' runat='server'></asp:Literal>"});
	        $("#txtUserName").formValidator({onshow:"<asp:Literal Text='<%$ Resources:Check,CUSTOMER_NAME_10 %>' runat='server'></asp:Literal>",onempty:"<asp:Literal Text='<%$ Resources:Check,CUSTOMER_NAME_EMPTY %>' runat='server'></asp:Literal>",onfocus:"<asp:Literal Text='<%$ Resources:Check,CUSTOMER_NAME_10 %>' runat='server'></asp:Literal>",oncorrect:"<asp:Literal Text='<%$ Resources:Check,VALIDATION_PASSED %>' runat='server'></asp:Literal>"}).inputValidator({min:3,max:20,onerror:"<asp:Literal Text='<%$ Resources:Check,INPUT_NOT_CORRENT %>' runat='server'></asp:Literal>"}).regexValidator({regexp:"name",datatype:"enum",onerror:"<asp:Literal Text='<%$ Resources:Check,CHECK_CUSTOMER_NAME_FORMAT %>' runat='server'></asp:Literal>"});
         });
    </script>

    <script type="text/javascript">
        $(function() {
            $("#accordion").accordion({
                header: "h3",
                autoHeight: false,
                navigation: true,
                active: 1
            });

            $(".ui-button:not(.ui-state-disabled)")
				.hover(
					function() {
					    $(this).addClass("ui-state-hover");
					},
					function() {
					    $(this).removeClass("ui-state-hover");
					}
				)
            $("#slider").slider({
                value: $("#txtAge").val(),
                min: 15,
                max: 99,
                step: 1,
                slide: function(event, ui) {
                    $("#txtAge").val(ui.value);
                }
            });
        });
    </script>

</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSubmit">
    <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" class="login_boder">
        <tr>
            <td width="231" rowspan="3" align="center">
                <img src="Css/custom-theme/images/logo.png" width="231" height="94" />
            </td>
            <td width="568" rowspan="3" align="center">
                <span class="login_title"><asp:Literal ID="ltTitle" runat="server" Text="<%$ Resources:Default,TITLE %>"></asp:Literal></span>
            </td>
            <td height="10" colspan="5" align="center">&nbsp;
                
            </td>
        </tr>
        <tr>
            <td width="139" height="32" align="right">&nbsp;
                </td>
            <td width="28" align="center">&nbsp;
                </td>
            <td width="10" align="center">&nbsp;
                
            </td>
            <td width="29" align="center">&nbsp;
                </td>
            <td width="19" align="center">&nbsp;
                
            </td>
        </tr>
        <tr>
            <td height="17" colspan="5" align="center">
                <uc1:ShowLoginInfo ID="ShowLoginInfo1" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="7" align="center">
                <img src="Css/custom-theme/images/login_1.png" width="1024" height="4" />
            </td>
        </tr>
        <tr>
            <td height="674" colspan="7" align="center" valign="top" style="background: url(Css/custom-theme/images/login_3.png) no-repeat bottom;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="45" colspan="4">&nbsp;
                            
                        </td>
                    </tr>
                    <tr>
                        <td width="20">&nbsp;
                            
                        </td>
                        <td width="263" align="left" valign="top">
                            <div id="accordion">
                <div>
                  <h3><a href="#"><asp:Literal ID="lt1" runat="server"  Text="<%$ Resources:Default,PROFILE_MANAGEMENT %>"></asp:Literal></a></h3>
                  <div>
                    <div style="margin-bottom:10px;">◆ <a href="ModifyInfo.aspx"><asp:Literal ID="lt2" runat="server" Text="<%$ Resources:Default,MODIFY_PROFILE_INFORMATION %>"></asp:Literal></a></div>
                    <div style="margin-bottom:10px;">◆ <a href="ModifyPassword.aspx"><asp:Literal ID="lt3" runat="server" Text="<%$ Resources:Default,MODIFY_PASSWORD %>"></asp:Literal></a></div>
                  </div>
                </div>
                <div>
                  <h3><a href="#"><asp:Literal ID="lt4" runat="server" Text="<%$ Resources:Default,CUSTOMER_MANAGEMENT %>"></asp:Literal></a></h3>
                  <div>
                    <div style="margin-bottom:10px;">◆ <a href="ClientCreate.aspx"><asp:Literal ID="lt5" runat="server" Text="<%$ Resources:Default,ADD_CUSTOMER %>"></asp:Literal></a></div>
                    <div style="margin-bottom:10px;">◆ <a href="ClientList.aspx"><asp:Literal ID="lt6" runat="server" Text="<%$ Resources:Default,MANAGE_CUSTOMER %>"></asp:Literal></a></div>
                    <div style="margin-bottom:10px;">◆ <a href="GroupCreate.aspx"><asp:Literal ID="lt7" runat="server" Text="<%$ Resources:Default,QUICK_ADD_CUSTOMER_GROUP %>"></asp:Literal></a></div>
                    <div style="margin-bottom:10px;">◆ <a href="GroupList.aspx"><asp:Literal ID="lt8" runat="server" Text="<%$ Resources:Default,MANAGE_CURRENT_CUSTOMER_GROUPS %>"></asp:Literal></a></div>
                  </div>
                </div>
                <div>
                  <h3><a href="#"><asp:Literal ID="lt9" runat="server" Text="<%$ Resources:Default,CAMPAIGN_MANAGEMENT %>"></asp:Literal></a></h3>
                  <div>
                    <div style="margin-bottom:10px;">◆ <a href="ProjectCreate.aspx"><asp:Literal ID="lt10l" runat="server" Text="<%$ Resources:Default,QUICK_LAUNCH_COUPON_CAMPAIGN %>"></asp:Literal></a></div>
                    <div style="margin-bottom:10px;">◆ <a href="ProjectList.aspx"><asp:Literal ID="lt11" runat="server" Text="<%$ Resources:Default,MANAGE_COUPON_CAMPAIGN %>"></asp:Literal></a></div>
                  </div>
                </div>
                <div>
                  <h3><a href="#"><asp:Literal ID="lt12" runat="server" Text="<%$ Resources:Default,STATISTICS_MANAGEMENT %>"></asp:Literal></a></h3>
                  <div>
                    <div style="margin-bottom:10px;">◆ <a href="ClientStatistics.aspx"><asp:Literal ID="lt13" runat="server" Text="<%$ Resources:Default,STATISTICS_BY_CUSTOMER %>"></asp:Literal></a></div>
                    <div style="margin-bottom:10px;">◆ <a href="ProjectStatistics.aspx"><asp:Literal ID="lt14" runat="server" Text="<%$ Resources:Default,STATISTICS_BY_CAMPAIGN %>"></asp:Literal></a></div>
                  </div>
                </div>
              </div>
                        </td>
                        <td width="33">&nbsp;
                            
                        </td>
                        <td width="708" valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content">
                                <tr>
                                    <td width="21%" height="40" rowspan="2" align="right">
                                        <asp:Localize ID="Localize1" runat="server" 
                                            meta:resourcekey="Localize1Resource1" Text="（*）手机号码："></asp:Localize>
                                    </td>
                                    <td colspan="3" align="left">
                                        <asp:TextBox ID="txtCellPhone" runat="server" CssClass="public_inputL" 
                                            meta:resourcekey="txtCellPhoneResource1"></asp:TextBox>
                                        <asp:HiddenField ID="hidOldCellPhone" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                  <td colspan="3" align="left"><div id="txtCellPhoneTip" ></div></td>
                                </tr>
                                <tr>
                                    <td height="40" rowspan="2" align="right">
                                        <asp:Localize ID="Localize2" runat="server" 
                                            meta:resourcekey="Localize2Resource1" Text="（*）公司："></asp:Localize>
                                    </td>
                                    <td colspan="3" align="left">
                                        <asp:TextBox ID="txtCompany" runat="server" CssClass="public_inputL" 
                                            meta:resourcekey="txtCompanyResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                  <td colspan="3" align="left"><div id="txtCompanyTip" ></div></td>
                                </tr>
                                <tr>
                                    <td height="40" rowspan="2" align="right">
                                        <asp:Localize ID="Localize3" runat="server" 
                                            meta:resourcekey="Localize3Resource1" Text="客户姓名："></asp:Localize>
                                    </td>
                                    <td colspan="3" align="left">
                                        <asp:TextBox ID="txtUserName" runat="server" CssClass="public_inputL" 
                                            meta:resourcekey="txtUserNameResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                  <td colspan="3" align="left"><div id="txtUserNameTip" ></div></td>
                                </tr>
                                <tr>
                                    <td height="40" align="right">
                                        <asp:Localize ID="Localize4" runat="server" 
                                            meta:resourcekey="Localize4Resource1" Text="性别："></asp:Localize>
                                    </td>
                                    <td colspan="3" align="left">
                                        <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal" 
                                            meta:resourcekey="rblSexResource1">
                                            <asp:ListItem Value="1" meta:resourcekey="ListItemResource1">男</asp:ListItem>
                                            <asp:ListItem Value="2" meta:resourcekey="ListItemResource2">女</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="40" align="right">
                                        <asp:Localize ID="Localize5" runat="server" 
                                            meta:resourcekey="Localize5Resource1" Text="年龄："></asp:Localize>
                                    </td>
                                    <td width="17%" align="left">
                                        <div id="slider" style="width: 100px;">
                                        </div>
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="txtAge" runat="server" CssClass="public_inputSS" Columns="2" 
                                            meta:resourcekey="txtAgeResource1"></asp:TextBox>
                                        <asp:Localize ID="Localize6" runat="server" 
                                            meta:resourcekey="Localize6Resource1" Text="岁"></asp:Localize>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="50" colspan="4" align="center">
                                        <asp:Button ID="btnSubmit" runat="server" CssClass="ui-button ui-state-default ui-corner-all"
                                            Text="保 存" OnClick="btnSubmit_Click" 
                                            meta:resourcekey="btnSubmitResource1" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>